package com.modules.entity.sys;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 数字字典
 *
 * @author yyq
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper=false)
@TableName("sys_dict")
public class DictEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 字典ID*/
	@TableId(type=IdType.AUTO)	
	private Integer id;	
	
	/** 字典名称*/
    private String dictName; 	
    
	/** 字典编码*/
    private String dictCode; 
    
    /** 字典类型：1单选框2复选框3下拉框*/
    private Integer dictType;   
    
    /** 备注*/
    private String remarks;  	

	/** 删除标识：0、未删1、已删*/
	@TableLogic // https://blog.csdn.net/qq_38080370/article/details/102613865
	private Integer delFlag;
	
	/** 创建时间*/
	@TableField(value = "create_date", fill = FieldFill.INSERT)
	private String createDate;
	
	/** 更新时间*/
	@TableField(value = "update_date", fill = FieldFill.INSERT_UPDATE)
	private String updateDate;
    
}
